﻿using System.Collections.Generic;

namespace ManagedUIFlow.Infrastructure.Flows
{
    public sealed class Flow
    {
        public Flow(string name, string startupNavigation,  RedirectBehavior redirectBehavior, string redirectUrl)
        {
            Name = name;                    
            Redirectable = redirectBehavior;
            RedirectUrl = redirectUrl;
            StartupNavigation = startupNavigation;
            Navigations = new List<Navigation>();
        }

        public string Name { get; private set; }        

        public RedirectBehavior Redirectable { get; private set; }

        public string RedirectUrl { get; private set; }

        public string StartupNavigation { get; set; }

        public IList<Navigation> Navigations { get; set; }
    }
}